include .env

run:
	RUST_LOG=debug RUST_BACKTRACE=1 cargo run

run_sample:
	RUST_LOG=info cargo run

gen_db_meta:
	sea-orm-cli generate entity \
    	-u $(DATABASE_DSN) \
    	-o src/entities \
		--with-serde both

depend_start:
	/usr/local/opt/mysql@5.7/bin/mysql.server restart
	make depend_stop
	~/workroom/bin/apollo-quick-start/demo.sh start
	cd  ~/workroom/bin/prometheus-2.47.2.darwin-amd64/
	nohup prometheus > prometheus.output 2>&1 &

depend_stop:
	~/workroom/bin/apollo-quick-start/demo.sh stop